<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="JS/jquery-1.10.2.min.js"></script>
    </head>
    <body>
        <script>
            xml = '<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><getProd soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><data xsi:type="m:string" xmlns:m="http://localhost/soap//buzzPulse/m/"/></getProd></soapenv:Body></soapenv:Envelope>';
            function soap() {
                var xmlhttp = new XMLHttpRequest();
                xmlhttp.open('POST', 'http://localhost/buzzPulse/m/', true);

                // build SOAP request
                var sr = xml;

                xmlhttp.onreadystatechange = function() {
                    if (xmlhttp.readyState == 4) {
                        if (xmlhttp.status == 200) {
                            console.log(xmlhttp);
                        }
                    }
                }
                // Send the POST request
                xmlhttp.setRequestHeader('Content-Type', 'text/xml');
                xmlhttp.send(sr);
                // send request
                // ...
            }
        </script>
    </body>
</html>
